#ifndef UNNORMALSTATENOTIFIERICON_H
#define UNNORMALSTATENOTIFIERICON_H

#include <QLabel>
#include <QTimer>
#include <QPixmap>

class UnnormalStateCenter;

class UnnormalStateNotifierIcon : public QLabel
{
Q_OBJECT
public:
	explicit UnnormalStateNotifierIcon(QString iconFile, QString movieFile, QWidget *parent = 0);
private slots:
	void onUnnormalStateListChanged(int count);
protected:
	void mousePressEvent(QMouseEvent *ev);
private:
	UnnormalStateCenter* m_UnnormalStateCenter;
	QMovie *m_WaringMovie;
	QPixmap m_Icon;
signals:
	void pressUnnormalStateNotifierIcon();
};

#endif // UNNORMALSTATENOTIFIERICON_H
